package junit.controller;

import name.jiaosha.air.company.controller.DepartmentController;
import name.jiaosha.air.company.domain.CarInfo;
import name.jiaosha.air.company.domain.Department;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestDepartmentController {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationContext.xml" });

		DepartmentController lc = (DepartmentController) context
				.getBean("departmentController");

		//lc.getMyCarInfoList();
		
		Department d=new Department();
		d.setName("技术部");
		lc.create(d);

	}

}
